package com.jf3q.restfuldemo.controller;

import com.jf3q.restfuldemo.entity.UserInfo;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:xiaojie
 * @create: 2024-01-02 14:11
 * @Description:
 */
@RestController
//@CrossOrigin
public class UserInfoController {

    @GetMapping("/getMsg")
    public String get(){
//        UserInfo userInfo=null;
//        userInfo.setUsername("xxxx");

//        int a=10/0;

        String[] aaa= new String[]{"xxx","yyy"};
        System.out.println(aaa[45]);
        return "getMsg success";
    }
}
